﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;
namespace BUS
{
    public partial class NguyenVatLieu_BUS
    {
        NguyenVatLieu_DAO nvl_dao;
        public bool ThemNVL(NguyenVatLieu nvl_dto)
        {
            nvl_dao = new NguyenVatLieu_DAO();
            return nvl_dao.ThemNVL(nvl_dto);
        }
        public bool CapNhatNVL(NguyenVatLieu nvl_dto)
        {
            nvl_dao = new NguyenVatLieu_DAO();
            return nvl_dao.CapNhatNVL(nvl_dto);
        }
        public bool XoaNVL(NguyenVatLieu nvl_dto)
        {
            nvl_dao = new NguyenVatLieu_DAO();
            return nvl_dao.XoaNVL(nvl_dto);
        }
        public DataTable DanhSachNVL()
        {
            nvl_dao = new NguyenVatLieu_DAO();
            DataTable dt = new DataTable();
            dt = nvl_dao.DanhSachNVL();
            return dt;
        }
        public DataTable DanhSachNVL_Ma(string strMa)
        {
            nvl_dao = new NguyenVatLieu_DAO();
            DataTable dt = new DataTable();
            dt = nvl_dao.DanhSachNVL_Ma(strMa);
            return dt;
        }
        public DataTable DanhSachNVL_MaLoaiNVL(string strMa)
        {
            nvl_dao = new NguyenVatLieu_DAO();
            DataTable dt = new DataTable();
            dt = nvl_dao.DanhSachNVL_MaLoaiNVL(strMa);
            return dt;
        }
        public string MaNVLTang()
        {
            nvl_dao = new NguyenVatLieu_DAO();
            return nvl_dao.MaNVLTang();
        }
    }
}
